// 统一管理项目接口地址
import request from "./request"
import qs from 'qs'

// 
export const getHomeImgAPI = () => request.get("index/banners/travel")

// 请求游记列表
export const getTravelListAPI = (orderType, currentPage) => request.get(`travels/query?orderType=${orderType}&currentPage=${currentPage}`)

// 用户登录
export const loginAPI = (pamars) => request.post("users/login", pamars)

// 用户注册
export const registAPI = (pamars) => request.post("users/regist", qs.stringify(pamars))
